#include <stdio.h>

int main()
{
    #if 0
     /* 循环一定要有退出条件*/
      int count = 5;
      while(1)
      {
      printf("hello world\n");
      count--;
      if(count == 0)
      {
           /*跳出当前循环*/
    break;

      }



      }
      #endif

      #if 0
            
            int count = 3;
            /*后置++*/
            count++;
            printf("count:%d\n",count );

            /* 前置++*/
            ++count;
            printf("count:%d\n",count);
            while(count--)
            {
           printf("hello world\n");

            }

        

      #endif

      #if 0

/*前置--：先运算在判断*/
  int count = 3;
       

            while(--count)
            {
           printf("hello world\n");

            }

            #endif
            #if 1
int count = 3;
       

            while(count--)//后置--：先判断再运算
            {
           printf("hello world\n");

            }


            #endif

      return 0;

}